package com.atguigu.exam;

/**
 * @author xbd
 * @create 2021-05-22 14:43
 */
public class ThreadImp {
    public static void main(String[] args) {
        ThreadImp1 imp1 = new ThreadImp1();
        Thread t1 = new Thread(imp1);

        t1.start();
    }
}

class ThreadImp1 implements Runnable{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(i);
        }
    }
}